//
//  UIButton+Extension.swift
//  新浪微博---01次
//
//  Created by 李宗帅 on 16/5/7.
//  Copyright © 2016年 LS. All rights reserved.
//

import UIKit

extension UIButton {
    convenience init(title:String ,image:String,color:UIColor,font:CGFloat){
        self.init()
        
        self.setTitle(title, forState: UIControlState.Normal)
        
        self.setImage(UIImage(named: image), forState: UIControlState.Normal)
        
        self.setTitleColor(color, forState: UIControlState.Normal)
        
        self.titleLabel?.font = UIFont.systemFontOfSize(font)

    }
}